<template>
	<view class="app">
		<view class="u-content">
			<u-parse :lazy-load="true" :html="content"></u-parse>
		</view>
	</view>
</template>

<script>
	import api from '@/api/article.js'
	export default {
		data() {
			return {
				id: null, //文章id1
				content: '', // 内容
			}
		},
		onLoad(option) {
			this.id = option.id
			this.getDetails()
		},
		methods: {
			// 查询文章详情333
			async getDetails() {
				const isoj = {
					id: this.id
				}
				const {
					data
				} = await api.getArticleById(isoj)
				this.content = data.content
			},
		}

	}
</script>

<style lang="scss">
	.u-content {
		margin-top: 10rpx;
		margin-left: 30rpx;
		margin-right: 30rpx;
	}
</style>
